﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manageweb/MemberMaster.master"
    AutoEventWireup="true" CodeFile="ScoreTree.aspx.cs" Inherits="Manageweb_Member_ScoreTree" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>积分关系图 </title>

    <script src="../Jquery/jquery-latest.min.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .treeCss td div
        {
            height: 20px !important;
        }
    </style>

    <script>
        $(function() {
            $("div[id$='TreeView1']").find("a[class*='TreeView']").each(function() {
                var txt = $(this).html();
                var textArray = txt.split("|");
                var ljscore = textArray[3];
                var specialscore = textArray[4];
//                var sum = textArray[5]

//                if (sum == undefined || sum == "") {
//                    sum = 0.00;
//                }
                
                if (ljscore == undefined || ljscore == "") {
                    ljscore = 0.00;
                }

                if (specialscore == undefined || specialscore == "") {
                    specialscore = 0.00;
                }

                var viewTxt = "<font size='1px'>" + textArray[0] + " <strong><font size='2px'></strong> " + textArray[1] + "  " + textArray[2] + "   <font color='red' size='1px'>" + specialscore + "</font>  <font color='green' size='1px'>" + ljscore + "</font>";

                $(this).html(viewTxt);
            });
        });
    </script>
 <style type="text/css">
        *
        {
            margin: 0;
        }
        body
        {
            font-size: 9pt;
        }
        #container div
        {
            margin-top: 6px;
        }
        #select_city h3
        {
            float: left;
        }
        #main_city, #all_province
        {
            clear: both;
        }
        #main_city div, #all_province div
        {
            width: 588px;
            clear: left;
        }
        #main_city h4, #all_province h4
        {
            float: left;
            display: inline;
            font-size: 16px;
        }
        #main_city div span, #all_province div span
        {
            margin: 0 9px;
            cursor: pointer;
            font-size: 14px;
        }
        #float_lay
        {
            width: 220px;
            height: 122px;
            border: 1px #787878 solid;
            position: absolute;
            background: #fff;
            z-index: 999;
            display: none;
        }
    </style>

    <script src="../../js/JsMasked.js" type="text/javascript"></script>

    <script type="text/javascript">
        var ServerKey = '<%=StrKey %>';
        var hidMiYao = '<%=hidMiYao.ClientID %>';
    </script>
    <div id="DivScoreTree" runat="server" visible="false">
        <fieldset>
            <legend>会员积分图</legend>
           <div style=" width:780px; height:500px;overflow:auto;">
                <div style="color: Red;">
                    <span style="color: red">红色为特别积分</span>，<span style="color: Green">绿色为累计积分</span>
                </div>
                <asp:TreeView ID="TreeView1" runat="server" CssClass="treeCss" ShowLines="True">
                    <NodeStyle ImageUrl="~/Manageweb/images/msn.png" />
                </asp:TreeView>
            </div>
        </fieldset>
    </div>
    
      <asp:HiddenField ID="hidMiYao" runat="server" />
</asp:Content>
